import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class test3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int m = scanner.nextInt();
        int n = scanner.nextInt();
        int[][] arr = new int[m+2][n+2];
        for(int i = 1; i <= m; i ++) {
            for(int j = 1; j <= n; j++) {
                arr[i][j] = scanner.nextInt();
            }
        }
        int count = 0;
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        System.out.println(count);
    }
    public static int A(int a,int b) {
        int min = Math.min(a,b);
        for(int i = min; min > 1; i++) {
            if(a%min ==0 && b%min ==0) {
                return 1;
            }
        }
        return 0;
    }

}
